<template>
  <div>
    <el-table


      align="left"
      :data="PushDetails"
      style="width: 100%"
      :default-sort = "{prop: 'date', order: 'descending'}"
    >
      <el-table-column

        prop="Work"
        label="作业名称"
        sortable
      >
      </el-table-column>

      <el-table-column

        prop="CommitName"
        label="提交人"
        sortable
      >
      </el-table-column>

      <el-table-column
        prop="CommitTime"
        label="提交时间"
        sortable
      >
      </el-table-column>
      <el-table-column
        label="操作"
      >
        <template slot-scope="scope" >

          <el-button type="text" size="small" >详情</el-button>

        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<style>

</style>
<script>

  export default{
    data(){
      return{
        PushDetails:[{
          Work:'Javascript语法',
          CommitName:'高生',
          CommitTime:'2017.1.1',
        },
          {
            Work:'Javascript属性',
            CommitName:'高伟廷',
            CommitTime:'2017.1.2',
          },
        ]
      }
    },
    methods:{

    }

  }
</script>
